#ifndef __ACCOUNT_H
#define __ACCOUNT_H

class Client;

#include "Client.h"

using namespace std;

class Account
{


public:
			int			getAccountId()									const;
			double		getBalance()									const;
			void		setAccountOwner(Client& owner);
	virtual void		setBalance(int newBalance);
	friend	ostream&	operator<<(ostream& os, const Account& acc);
			bool		operator==(const Account& other)				const;
	virtual				~Account();

protected:
	static	int				accountIDGenerator;
			int				accountId;
			double			balance;
			const Client*	owner;

					Account(int initizlizedBalance);
	virtual void	toOs(ostream& os)			const;
};
#endif